<template>
  <div>
    {{ areaText }}
  </div>
</template>
<script>
import RegionUtil from "../../utils/regionUtil";
export default {
  name: "RegionTag",
  props: {
    code: {
      type: String,
      default: null,
    },
  },
  computed: {
    areaText() {
      let labelArr = RegionUtil.codeToTextArray(this.code);
      return labelArr.join("/");
    },
  },
};
</script>
<style scoped></style>
